﻿using Assets.Scripts.UI;
using System;
using System.Collections;
using System.Collections.Generic;

namespace Extension
{
    public static class ListExtension
    {
        public static UIPanel SearchPanelByType(this List<UIPanel> panelList,UIPanelType uIpanelType)
        {
            foreach (UIPanel panel in panelList)
            {
                if(panel.uIPanelType == uIpanelType)
                {
                    return panel;
                }
            }
            return null;
        }
    }
    public static class ZeroInZeroOutFuncExtension
    {
        //public static void Disconnect<T>(this T action) where T 
        //{
        //    EventManager.RemoveListener("s", action);
        //}
    }
}